using System.Runtime.InteropServices;

namespace WindowsAPI
{
    [StructLayout(LayoutKind.Sequential)]
    public struct LARGE_INTEGER
    {
        public int Low;
        public int High;

        public long QuadPart() { return High * 0x100000000 + Low; }

        public static implicit operator long(LARGE_INTEGER i) { return i.High * 0x100000000 + i.Low; }
    }
}